package com.example.mapper;

import com.example.entity.Staffs;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: tobed
 * @date: 2022/11/14
 * @time: 11:21
 */
@Mapper
public interface StaffsMapper {

    /*通过数组查信息*/
    List<Staffs> listPeopleByIds(@Param("id") List<String> id);

    /*全查*/
    List<Staffs> list(Staffs staffs);

    /*通过id单查*/
    Staffs getPeoppeById(@Param("id") Integer complaintUserId);

    /*重置密码*/
    int rest(@Param("id") Integer id,@Param("password") String password);

    /*修改用户状态*/
    int updateSTatus(@Param("id") Integer id,@Param("status") int status);
}
